﻿function save() {
    var url = "add";
    //var data = { "accountVM": $("form").serialize() };
    var data = $("form").serialize();
    $.ajax({
        url:url,
        data: data,
        type: "post",
        dataType: "JSON",
        success: function (result) {
            console.log(result);
            if (result.isSuccess) {
                window.close();
            }
        }
    });
}